<?php


namespace App\Http\Controllers\applets\model;


use Illuminate\Support\Facades\DB;

class SubjectModel
{
    public static function queryAll($where=[]){
        return DB::table('t_subject')->where($where)->get(['id','name']);
    }

    public static function queryFirst($where,$field){
        return DB::table('t_subject')->where($where)->first($field);
    }
}